module MC.Order {
	export class orderXuanze {
		public constructor() {
			this.init();
		}
		private init() {
			$('[out_trade_no] .xuanzehezuo').click(function () {
				MC.click(() => {
					MC.msg.confirm("该操作无法撤销,未选择的工厂的保证金将会返还;是否确认选择该工厂合作?", () => {



						let out_trade_no = $(this).parent().attr('out_trade_no');
						MC.api("xuanzehezuo", {
							out_trade_no: out_trade_no
						}, (json: any) => {
							window.open('/h5/order/kongzhitai.html?out_trade_no=' + out_trade_no, '_self');
							 
						});

					});


				});


			});
		}
	}
}